<?php
/* @var $this ChannelController */
/* @var $model Channel */

$this->pageTitle = '查看栏目';

$this->breadcrumbs = array(
	'栏目' => array('index'),
	$model->title,
);

$this->menu = array(
	array('label' => '栏目列表', 'url' => array('index'), 'icon' => 'list'),
	array('label' => '创建栏目', 'url' => array('create'), 'icon' => 'plus'),
	array('label' => '更新栏目', 'url' => array('update', 'id' => $model->id), 'icon' => 'pencil'),
);
?>

<div class="page-header">
	<h1>查看栏目</h1>

	<div class="btn-group pull-right">
		<button data-toggle="dropdown" class="btn btn-primary dropdown-toggle"> 操作 <span class="caret"></span></button>
		<?php $this->widget('bootstrap.widgets.TbDropdown', array(
			'items' => $this->menu,
		))?>
	</div>
</div>
<?php $this->widget('bootstrap.widgets.TbDetailView', array(
	'data' => $model,
	'attributes' => array(
		'id',
		'title',
		'name',
		array(
			'name' => 'type',
			'value' => $model->typeList[$model->type],
		),
		array(
			'name' => 'bundle',
			'value' => $model->getBundleName(),
		),
		array(
			'name' => 'keywords',
		),
		array(
			'name' => 'description',
		),
		array(
			'name' => 'create_time',
			'type' => 'datetime',
		),
		array(
			'name' => 'update_time',
			'type' => 'datetime',
		),
	),
)); ?>
